import request from '@/utils/request'

// 添加节点
export function addNode(data) {
    return request({
        url: '/system/node',
        method: 'POST',
        data: data
    })
}
//删除
export function deleteNode(data) {
    return request({
        url: '/system/node/' + data.id,
        method: 'DELETE'
    })
}
//获取节点
export function getNode(id) {
    return request({
        url: '/system/node/' + id,
        method: 'GET',

    })
}

//获取节点列表
export function getNodeList() {
    return request({
        url: '/system/node/list',
        method: 'GET',

    })
}
//点击节点
export function catNode(id) {
    return request({
        url: '/system/node/cat/'+id,
        method: 'GET',

    })
}